package cn.net.zj.scan.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import cn.net.zj.scan.R;
import cn.net.zj.scan.bean.TaskBean;

public class TaskListAdapter extends BaseQuickAdapter<TaskBean, BaseViewHolder> {

    public TaskListAdapter(int layoutResId, @Nullable List<TaskBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, TaskBean item) {
        helper.setText(R.id.tvIndex, (helper.getAdapterPosition() + 1) + "");
        helper.setText(R.id.tvId, item.getFBillNo());
        helper.setText(R.id.tvTime, item.getFDate());
        helper.setText(R.id.tvType, item.getFtype());
    }
}
